Skip to content

fix(core): dynamically extend _slice_by_braces search_limit for massive args - #2169

Merged
squid-protocol merged 2 commits into
mainfrom
fix/detector-slice-limit
Aug 23, 2026
Merged

fix(core): dynamically extend _slice_by_braces search_limit for massive args#2169
squid-protocol merged 2 commits into
mainfrom
fix/detector-slice-limit

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Functions with extremely large inline parameter lists (e.g. Zig's fn dbHelper(..., tag_to_encoding_map: *struct { ... }) where the struct spans 6,600+ characters) were silently dropped. The _slice_by_braces bounded search limit (search_limit = min(next_match_start, start_idx + 2000)) forced the search for the body's opening { to give up before the argument list even finished.

This dynamically extends the bound to min(next_match_start, params_end_idx + 2000) to safely account for large inline signatures while preserving the safety boundary against the next matching function block.

Also reconciles tri-comparison ledger sweeps for Zig and updates accuracy charts and baselines.

Resolves #2166.
Resolves #2167.
Resolves #2168.

…ve args

Functions with extremely large inline parameter lists (e.g. Zig's `fn dbHelper(..., tag_to_encoding_map: *struct { ... })` where the struct spans 6,600+ characters) were silently dropped. The `_slice_by_braces` bounded search limit (`search_limit = min(next_match_start, start_idx + 2000)`) forced the search for the body's opening `{` to give up before the argument list even finished.

This dynamically extends the bound to `min(next_match_start, params_end_idx + 2000)` to safely account for large inline signatures while preserving the safety boundary against the next matching function block.

Also reconciles tri-comparison ledger sweeps for Zig and updates accuracy charts and baselines.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1f449c2 into main Aug 23, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the fix/detector-slice-limit branch August 23, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant